<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>物流管理系统 - twoGroupmain</title>
    <link rel="stylesheet" src="/static/layui/css/layui.css">
    <style>
        /* Custom styles */
        body, html {
            height: 100%;
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
        }
        .nav-container {
            background-color: #393D49;
            height: 100%;
            width: 200px;
            position: fixed;
            left: 0;
            top: 0;
            padding-top: 70px;
        }
        .nav-item {
            margin-bottom: 10px;
        }
        .nav-item a {
            display: block;
            padding: 10px;
            color: #fff;
            text-decoration: none;
            transition: background-color 0.3s;
            border-left: 5px solid transparent;
            position: relative;
        }
        .nav-item a:hover {
            background-color: #5FB878;
            border-left-color: #FF5722;
        }
        .header {
            background-color: #393D49;
            color: #fff;
            height: 50px;
            position: fixed;
            left: 0;
            right: 0;
            top: 0;
            line-height: 50px;
            padding-left: 10px;
            z-index: 1000;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }
        .footer {
            background-color: #f2f2f2;
            position: fixed;
            bottom: 0;
            left: 200px;
            right: 0;
            height: 100px;
            z-index: 1000;
        }
        .footer-content {
            padding: 20px;
        }
        /* New styles */
        .sub-menu {
            display: none;
            padding-left: 20px;
        }
        .has-sub.open .sub-menu {
            display: block;
        }
        .arrow {
            position: absolute;
            top: 50%;
            right: 10px;
            transform: translateY(-50%);
            transition: transform 0.3s;
        }
        .open .arrow {
            transform: translateY(-50%) rotate(-180deg);
        }
    </style>
</head>
<body>

<div class="nav-container">
    <div class="nav-item">
        <a href="/twoGroup/userinfo/userinfo">韩森宇-用户信息</a>
    </div>
    <div class="nav-item">
        <a class="nav-link" th:href="@{/Delivery}">栾凯越-派件管理</a>
    </div>
    <div class="nav-item">
        <a class="nav-link" th:href="@{/toGoodsHome}">王腾鑫-收货管理</a>
    </div>
    <div class="nav-item has-sub">
        <a href="#" class="toggle-submenu">戴明东-报表统计<span class="arrow">&#x25BC;</span></a>
        <div class="sub-menu">
            <a class="nav-link" th:href="@{/tostock_in_report}">进货站报表</a>
            <a class="nav-link" th:href="@{/tostock_out_report}">出货站报表</a>
            <a class="nav-link" th:href="@{/tointernal_report}">内部报表</a>
            <a class="nav-link" th:href="@{/toreceipt_statistics}">收件统计</a>
            <a class="nav-link" th:href="@{/todispatch_statistics}">派件统计</a>

        </div>
    </div>
    <div class="nav-item">
        <a class="nav-link" th:href="@{/twoGroup/settings}">张宇-基础资料设置</a>
    </div>
    <div class="nav-item">
        <a class="nav-link" th:href="@{/twoGroup/price}">付陈瑶-价格设置</a>
    </div>
    <div class="nav-item">
        <a class="nav-link" th:href="@{/dynamic}">赵佳乐-单据查询</a>
    </div>
</div>

<div class="header">
    <div style="font-size: 24px; font-weight: bold;">物流管理系统</div>
</div>

<div class="footer">
    <div class="footer-content">
        版权所有 © 2024 物流管理系统
    </div>
</div>

<script href="/static/layui/layui.js"></script>
<script>
    document.addEventListener('DOMContentLoaded', function() {
        var toggleSubmenu = document.querySelector('.toggle-submenu');
        var subMenu = document.querySelector('.sub-menu');

        toggleSubmenu.addEventListener('click', function() {
            if (subMenu.style.display === 'block') {
                subMenu.style.display = 'none';
                toggleSubmenu.parentNode.classList.remove('open');
            } else {
                subMenu.style.display = 'block';
                toggleSubmenu.parentNode.classList.add('open');
            }
        });
    });
</script>
</body>
</html>
